/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package hw2;
import java.util.Date;
//import static net.mindview.util.Print.*;
/**
 *
 * @author Matrix
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    static boolean test1(int val) {
        System.out.println("Value 1 is");
        boolean y = val < 1;
        System.out.println(y);
        return y;

    }

    static boolean test2(int val) {
        System.out.println("Value 2 is");
        boolean y = val < 2;
        System.out.println(y);
        return y;

    }

    static boolean test3(int val) {
        System.out.println("Value 3 is");
        boolean y = val < 3;
        System.out.println(y);
        return y;

    }

    static boolean testwhile() {
        double rnd = Math.random();
        boolean x = 0.99 > rnd;
        System.out.println(x + ", " + rnd);
        return x;
    }

    public static void main(String[] args) {
        // TODO code application logic here
        System.out.println("Сегодня такая-то дата: ");
        System.out.println(new Date());
        boolean b = test1(0) && test2(2) && test3(3);
        System.out.println("all test is passed: " + b);
        while (testwhile())
            System.out.println("In While");
        System.out.println("Out While");

    }

}
